import type { ComponentInternalInstance, VNode } from 'vue'
export interface MessageProps {
  message: string | VNode
  type?: 'success' | 'info' | 'waring' | 'danger'
  duration?: number
  showClose?: boolean
  onDestory: () => void
  id: string
  offset?: number
  zIndex?: number
  transitionName?:string
}
export type CreateMessageProps = Omit<
  MessageProps,
  'onDestory' | 'id' | 'zIndex'
>
export interface MessageContext {
  id: string
  vnode: VNode
  props: MessageProps
  vm: ComponentInternalInstance
  destory: () => void
}
